@use './variables.scss' as *;
@use './mixins.scss' as *;

// ==================== CSS Reset ====================
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: $font-family-base;
  font-size: $font-size-base;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: $font-weight-bold;
  line-height: 1.2;
  margin-bottom: $spacing-md;
}

h1 { font-size: $font-size-5xl; }
h2 { font-size: $font-size-4xl; }
h3 { font-size: $font-size-3xl; }
h4 { font-size: $font-size-2xl; }
h5 { font-size: $font-size-xl; }
h6 { font-size: $font-size-lg; }

p {
  margin-bottom: $spacing-md;
}

a {
  color: inherit;
  text-decoration: none;
  @include transition(color, opacity);
  
  &:hover {
    color: $primary-color;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  
  &:focus {
    outline: none;
  }
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  
  &:focus {
    outline: none;
  }
}

